package beforeadvice;

public class AdminServiceImpl implements AdminService{
    @Override
    public String queryOne(String name) {

        //System.out.println("开启事务");
        System.out.println("调用DAO "+name);
        System.out.println("关闭事务");

        return name;
    }

    @Override
    public void add(String name) {
        //System.out.println("开启事务");
        System.out.println("调用DAO "+name);
        System.out.println("关闭事务");
    }
}
